package com.ruoyi.ora.mapper;

import java.util.List;
import com.ruoyi.ora.domain.AssetsPermission;
import org.apache.ibatis.annotations.Param;

/**
 * 资产权限Mapper接口
 * 
 * @author liuwp
 * @date 2025-04-10
 */
public interface AssetsPermissionMapper 
{
    /**
     * 查询资产权限
     * 
     * @param id 资产权限主键
     * @return 资产权限
     */
    public AssetsPermission selectAssetsPermissionById(Long id);

    /**
     * 查询资产权限列表
     * 
     * @param assetsPermission 资产权限
     * @return 资产权限集合
     */
    public List<AssetsPermission> selectAssetsPermissionList(AssetsPermission assetsPermission);

    /**
     * 可以业务主键查询一条资产权限
     *
     * @param assetsPermission 资产权限
     * @return 资产权限集合
     */
    public AssetsPermission selectOneAssetsPermission(AssetsPermission assetsPermission);

    /**
     * 新增资产权限
     * 
     * @param assetsPermission 资产权限
     * @return 结果
     */
    public int insertAssetsPermission(AssetsPermission assetsPermission);

    /**
     * 修改资产权限
     * 
     * @param assetsPermission 资产权限
     * @return 结果
     */
    public int updateAssetsPermission(AssetsPermission assetsPermission);

    /**
     * 条件修改资产权限
     *
     * @param assetsPermission 资产权限
     * @param assetsPermission 资产权限条件
     * @return 结果
     */
    public int updateAssetsPermissionCondition(@Param("assetsPermission") AssetsPermission assetsPermission, @Param("assetsPermissionCondition") AssetsPermission assetsPermissionCondition);

    /**
     * 删除资产权限
     * 
     * @param id 资产权限主键
     * @return 结果
     */
    public int deleteAssetsPermissionById(Long id);

    /**
     * 条件删除资产权限
     *
     * @param assetsPermission 资产权限
     * @return 结果
     */
    public int deleteAssetsPermissionByCondition(AssetsPermission assetsPermission);

    /**
     * 批量删除资产权限
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAssetsPermissionByIds(Long[] ids);
}
